﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Guoc.BigMall.Domain.Service
{
    /// <summary>
    ///  领域服务
    /// </summary>
   public interface IDomainService
    {
        /// <summary>
        ///  添加服务
        /// </summary>
        /// <param name="t"></param>
        void Add<T>(T t) where T : IDomainService;

        T GetService<T>() where T : IDomainService;
    }
}
